package com.zjhn.ds.param;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @BelongsProject: ds_jlw
 * @BelongsPackage: com.zjhn.ds.param
 * @Author: sxt
 * @CreateTime: 2023-09-26  14:11
 * @Description:
 * @Version: 1.0
 */
@Data
public class AddUpdateClassParam {

    @ApiModelProperty("班次id")
    @JsonProperty("workshop_class_id")
    private String workshopClassId;

    @ApiModelProperty("车间id")
    @JsonProperty("workshop_id")
    @NotBlank(message = "车间id不能为空")
    private String workshopId;

    @ApiModelProperty("班次名称")
    @JsonProperty("workshop_class_name")
    @NotBlank(message = "班次名称不能为空")
    private String workshopClassName;

    @ApiModelProperty("开始时间")
    @JsonProperty("start_time")
    @Pattern(regexp = "^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$", message = "开始时间格式 HH:mm")
    private String startTime;

    @ApiModelProperty("结束时间")
    @JsonProperty("end_time")
    @Pattern(regexp = "^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$", message = "结束时间格式 HH:mm")
    private String endTime;

}
